package api.app;

import java.io.IOException;
import java.util.HashMap;
import common.Host;
import common.Request;

/**
 * 帮忙医APP获取banner信息接口
 * @author lipeng
 *
 */
public class Banner
{
        public static String get(String token,String typeNo)throws IOException{
        	//拼接口地址
        	String url = Host.getAddress()+"/api/banner";
        	
        	//给参数赋值
        	HashMap<String, String> parmsTemp = new HashMap<>();
        	parmsTemp.put("typeNo", typeNo);
        	
        	//调用接口并返回接口数据
        	String result = Request.get(url, parmsTemp,token);
        	return result;
        }
}
